/*
 * Lista.cpp
 *
 *  Created on: 23/08/2012
 *      Author: vagner
 */

#ifndef LISTA_CPP_
#define LISTA_CPP_

typedef int Item;

typedef struct Nodo* pNodo;

typedef struct Nodo{
	Item item;
	pNodo next;
}Nodo;

class Lista{
private:
	pNodo first;
	pNodo last;
	int numItens;
public:
	Lista();
	~Lista();
	int addItem(Item i);
	int isEmpty();
	const Item& removeItem(Item i);
	int findItem(Item i) const;
	int deleteItem(Item i);
	void deleteAllItens();
	int size() const;
	void show() const;
};



#endif /* LISTA_CPP_ */
